package com.newasia.server.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author LiChong
 * @description 重写shiro的token类实现免密登陆
 * @date 2020/3/31
 */

public class MyShiroTaken extends UsernamePasswordToken{

    //增加是否为免密登录的判断
    private boolean noPassword;

    public MyShiroTaken(){
        super();
    }

    public MyShiroTaken(String username,String password){
        super(username,password);
        this.noPassword = false;
    }

    public MyShiroTaken(String username,String password,boolean noPassword){
        super(username,password);
        this.noPassword = noPassword;
    }

    public boolean isNoPassword() {
        return noPassword;
    }
}
